home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2004 April / SGI IRIX 6.5 Applications 2004 April.iso / dist / appletalk.idb / usr / etc / appletalk / gettwist.z / gettwist
Text File  |  2002-03-07  |  634b  |  32 lines

  1. #!/bin/csh -f
  2. #     @(#)gettwist    10.1    99/10/14    
  3. #    Copyright (c) 1998 by Xinet, Inc.  All Rights Reserved.
  4. #
  5. #    Script to find "Twist" inputs and display them 
  6. #
  7. if (-d /symlinks/io/jobs/workflows) then
  8.     set types = ( `ls /symlinks/io/jobs/workflows | grep -v setup` )
  9. else 
  10.     exit 1
  11. endif
  12.  
  13. if ($#argv > 0) then
  14.     if ("$1" == get) then
  15.         if ($#argv < 2) exit 1
  16.         echo "/symlinks/io/jobs/workflows/$2"
  17.         exit 0
  18.     endif
  19.     if ("$1" == ppd) then
  20.         set ppd = /usr/adm/appletalk/ppds/DADASCPT.PPD
  21.         if (-r $ppd) echo $ppd
  22.         exit 0
  23.     endif
  24.     if ("$1" != list) exit 1
  25. endif
  26. set f = 1
  27. while ($f <= $#types)
  28.     echo dir\:$types[$f]
  29.     @ f = $f + 1
  30. end
  31. exit 0
  32.